<div class="modal-header clearfix">
    {{multiLan?(modalTitle|translate):modalTitle}}
    <i class="yb-icon ico-close" ng-click="cancel()"></i>
</div>
<div class="modal-body row">
    <form class="form-horizontal" name="myForm">
        <div class="row">
            <div class="form-group" ng-if="!hideTemplate">
                <label class="control-label col-xs-2">{{multiLan?('下载模板'|translate):'下载模板'}}：</label>
                <div class="col-xs-10">
                    <button class="btn btn-default col-xs-2" yb-download download-method="downloadMethod" download-url="templateReqUrl" download-param="condition" style="padding:6px;">
                        {{multiLan?('下载'|translate):'下载'}}
                    </button>
                    <div class="col-xs-10 m-t-xs txt-show danger-color">
                        <div style="float:left;">{{multiLan?('注：'|translate):'注：'}}</div>
                        <div style="float:left;width:88%;">
                            {{multiLan?('模板格式不正确，则相应的'|translate):'模板格式不正确，则相应的'}}&nbsp;
                            {{multiLan?(modalName|translate):modalName}}&nbsp;
                            {{multiLan?('数据不能导入'|translate):'数据不能导入'}}
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-2">{{multiLan?('选择文件'|translate):'选择文件'}}：</label>
                <div class="col-xs-10">
                    <div class="btn btn-default col-xs-2" ngf-select ngf-multiple="false" ng-model="file"
                         ng-click="clearErrorMsg()"
                         style="padding:6px;">
                        {{multiLan?('浏览'|translate):'浏览'}}
                    </div>
                    <div class="col-xs-10 m-t-xs txt-show info-color">{{file.name}}</div>
                </div>
            </div>

            <div class="form-group m-t-n-sm" ng-if="importErrList.length>0">
                <label class="control-label col-xs-2">{{multiLan?('错误信息'|translate):'错误信息'}}：</label>
                <ul class="import-error col-xs-10">
                    <li ng-repeat="item in importErrList track by $index" class="m-b-xs">
                        <div class="pos-a">{{multiLan?('第no'|translate):'第'}}<span class="err-row warn-color">{{item.errRow}}</span>{{multiLan?('行current'|translate):'行'}}：</div>
                        <div class="err-msg spill-dots" title="{{multiLan?((item.errMessage)|translate):(item.errMessage)}}">{{multiLan?((item.errMessage)|translate):(item.errMessage)}}</div>
                    </li>
                </ul>
            </div>
            <div class="form-group m-t-n-sm" ng-if="!!importErrMsg">
                <label class="control-label col-xs-2">{{multiLan?('错误信息'|translate):'错误信息'}}：</label>
                <label class="control-label col-xs-10 text-left danger-color">{{multiLan?(importErrMsg|translate):importErrMsg}}</label>
            </div>

            <div class="form-group" ng-if="isloading">
                <div class="col-lg-offset-3 loading-group p-l-xs">
                    {{multiLan?('数据导入中，请稍候......'|translate):'数据导入中，请稍候......'}}
                </div>
            </div>
        </div>

        <div class="modal-footer clearfix">
            <span class="danger-color font-14 pull-left p-t-xs" ng-if="fileErrMsg">{{multiLan?(fileErrMsg|translate):fileErrMsg}}</span>
            <div class="pull-left" ng-if="partSucc&&importSuccList.length>0">
                {{multiLan?('导入成功'|translate):'导入成功'}}<span style="color:#45b787;font-size:24px;margin:0 4px;">{{importSuccList.length}}</span>{{multiLan?('条'|translate):'条'}}，
                {{multiLan?('导入失败'|translate):'导入失败'}}<span style="color:#c02c38;font-size:24px;margin:0 4px;">{{importErrList.length}}</span>{{multiLan?('条'|translate):'条'}}。
            </div>

            <button type="button" class="btn btn-primary btn-modal m-r-xs" ng-click="importFile(file)" ng-disabled="!!isloading">
                {{multiLan?('导入'|translate):'导入'}}
            </button>
            <button type="button" class="btn btn-default btn-modal" ng-click="cancel()" ng-disabled="!!isloading">
                {{multiLan?('取消'|translate):'取消'}}
            </button>
        </div>
    </form>
</div>
